<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
  <head>
    <title>系统参数设置</title>
  </head>
  <body>
    <div id="parameterTabs" style="height:580px;" class="x-form-item">
    </div>
    <script>
        /*
         * Ext JS Library 2.0.2
         * Copyright(c) 2006-2008, Ext JS, LLC.
         * licensing@extjs.com
         *
         * http://extjs.com/license
         */
        Ext.onReady(function(){
            // second tabs built from JS
            var tabs = new Ext.TabPanel({
                id: 'tabs',
                renderTo: 'parameterTabs',
                activeTab: 0,
                width: '100%',
                height: 700,
                plain: true,
                enableTabScroll:true,
                defaults: {
                    autoScroll: true
                },
                items: [{
                        id: 'tab1',
                        title: '机型/费税',
                        autoLoad: {
                            url: '/admin/plane_tax'
                            //params: 'id=1'
                            ,scripts: true
                        },
                        listeners: {
                            activate: handleActivate
                        }
                    }, {
                        id: 'tab2',
                        title: '支付方式',
                        autoLoad: {
                            url: '/admin/payment_type'

                            //params: 'id=1'
                            ,scripts: true
                        },
                        listeners: {
                            activate: handleActivate
                        }

                    }, {
                        id: 'tab3',
                        title: '客户类型',
                        autoLoad: {
                            url: '/admin/customer_type'

                            //params: 'id=1'
                            ,scripts: true
                        },
                        listeners: {
                            activate: handleActivate
                        }

                    }
                    /*, {
                        id: 'tab4',
                        title: '电话类型',
                        autoLoad: {
                            url: '/admin/phone_type'

                            //params: 'id=1'
                            ,scripts: true
                        },
                        listeners: {
                            activate: handleActivate
                        }

                    }*/, {
                        id: 'tab5',
                        title: '证件类型',
                        autoLoad: {
                            url: '/admin/card_type'

                            //params: 'id=1'
                            ,scripts: true
                        },
                        listeners: {
                            activate: handleActivate
                        }

                    }, {
                        id: 'tab6',
                        title: '结算类型',
                        autoLoad: {
                            url: '/admin/settlement_type'

                            //params: 'id=1'
                            ,scripts: true
                        },
                        listeners: {
                            activate: handleActivate
                        }

                    }, {
                        id: 'tab7',
                        title: '消费级别',
                        autoLoad: {
                            url: '/admin/cost_level'

                            //params: 'id=1'
                            ,scripts: true
                        },
                        listeners: {
                            activate: handleActivate
                        }
                        /*
                    }, {
                        id: 'tab8',
                        title: '票证入库',
                        autoLoad: {
                            url: '/admin/checkAir'

                            //params: 'id=1'
                            ,scripts: true
                        },
                        listeners: {
                            activate: handleActivate
                        }
                         */
                    }, {
                        id: 'tab9',
                        title: '航空公司',
                        autoLoad: {
                            url: '/admin/airways'
                            //params: 'id=1'
                            ,scripts: true
                        },
                        listeners: {
                            activate: handleActivate
                        }
                    }, {
                        id: 'tab10',
                        title: '空港管理',
                        autoLoad: {
                            url: '/admin/airport'
                            //params: 'id=1'
                            ,scripts: true
                        },
                        listeners: {
                            activate: handleActivate
                        }
                    }, {
                        id: 'tab11',
                        title: '舱位管理',
                        autoLoad: {
                            url: '/admin/position'
                            //params: 'id=1'
                            ,scripts: true
                        },
                        listeners: {
                            activate: handleActivate
                        }
                    }, {
                        id: 'tab12',
                        title: '部门管理',
                        autoLoad: {
                            url: '/admin/department'
                            //params: 'id=1'
                            ,scripts: true
                        },
                        listeners: {
                            activate: handleActivate
                        }
                    }, {
                        id: 'tab13',
                        title: '燃油税',
                        autoLoad: {
                            url: '/admin/fuel_tax'
                            //params: 'id=1'
                            ,scripts: true
                        },
                        listeners: {
                            activate: handleActivate
                        }
                    }]
            });
            function handleActivate(tab){
                //alert(tab.title + ' was activated.');
                //                    var new_order = Ext.getCmp('new_order');
                //                    if (new_order) {
                //                        Ext.getCmp('tabs').remove('new_order');
                //                    }
            }
        });
    </script>
  </body>
</html>
